import request from '@/utils/request'

// 查询保养规则列表
export function listFwMaintenance(query) {
  return request({
    url: '/device/fwMaintenance/list',
    method: 'get',
    params: query
  })
}

// 查询保养规则详细
export function getFwMaintenance(id) {
  return request({
    url: '/device/fwMaintenance/' + id,
    method: 'get'
  })
}

// 新增保养规则
export function addFwMaintenance(data) {
  return request({
    url: '/device/fwMaintenance',
    method: 'post',
    data: data
  })
}

// 修改保养规则
export function updateFwMaintenance(data) {
  return request({
    url: '/device/fwMaintenance',
    method: 'put',
    data: data
  })
}

// 删除保养规则
export function delFwMaintenance(id) {
  return request({
    url: '/device/fwMaintenance/' + id,
    method: 'delete'
  })
}
